package cn.juque.datapipeline.mapper;

import cn.juque.datapipeline.entity.TaskFieldMappingInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author JUQUE
 * @version 1.0.0
 * <ul>
 *  <li>simple-generator</li>
 *  <li>任务字段映射</li>
 * </ul>
 * {@code @date} 2023-03-31 16:33:58
 **/
@Mapper
public interface TaskFieldMappingInfoMapper extends BaseMapper<TaskFieldMappingInfo> {

    /**
     * 分页查询
     *
     * @param page                 : page
     * @param taskFieldMappingInfo : taskFieldMappingInfo
     * @return List<TaskFieldMappingInfo>
     */
    List<TaskFieldMappingInfo> queryFieldMappingInfoList(Page<TaskFieldMappingInfo> page, @Param("ew") TaskFieldMappingInfo taskFieldMappingInfo);

    /**
     * 查询
     *
     * @param taskFieldMappingInfo : taskFieldMappingInfo
     * @return List<TaskFieldMappingInfo>
     */
    List<TaskFieldMappingInfo> queryFieldMappingInfoList(@Param("ew") TaskFieldMappingInfo taskFieldMappingInfo);
}
